<template>
  <div id="app">
    <Music 
      :pos="{top: '1rem', left: '1rem'}" 
      src="http://audio.cnnjidc.com/jinisi/jinisi-main.mp3"
      :isAuto="false" />
    <router-view></router-view>
  </div>
</template>

<script>
import Music from '@/components/Music';
import token from './assets/token.js';
import {jsonP} from './assets/utils.js';
import {share} from './assets/share.js';
import shareInfo from './assets/shareinfo.js';
import './assets/css/reset.css';
import 'animate.css/animate.min.css';
import './assets/css/common.css';
export default {
  name: 'app',
  data () {
    return {
    }
  },
  mounted: function(){
    share({
        shareURL: shareInfo.shareURL,
        title: shareInfo.app.title,
        desc: shareInfo.app.desc,
        imgUrl: shareInfo.app.imgUrl
    });
    jsonP(token);  
  },
  components: { 
    Music 
  }
}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

</style>
